<template>
  <div class="net-tag">
    <div class="tag-wrap">
      <span>{{ text }}</span>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, computed } from 'vue'

import tagProps from './props'

export default defineComponent({
  props: tagProps,
  setup(props) {
    const text = computed(() => props.text)
    return {
      text
    }
  }
})
</script>

<style scoped lang="less">
.tag-wrap {
  height: 20px;
  padding: 1px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #747474;

  &:hover {
    cursor: pointer;
    border: 1px solid #fff;
  }

  span {
    color: #ccc;
    font-size: 12px;
  }
}
</style>
